﻿using System.ComponentModel.DataAnnotations;

namespace curriculum_design.Model
{
    public class Device
    {
        [Key]
        public int DeviceId { get; set; }//主键
        [Display(Name = "设备编号")]
        public string DeviceNumer {  get; set; }//设备编号
        [Display(Name ="设备名称")]
        public string DeviceName { get; set; }//名称
        [Display(Name = "制造商")]
        public string Manufacturer { get; set; }//制造商
        [Display(Name = "产地")]
        public string Origin { get; set; }//产地
        [Display(Name = "生产日期")]
        public DateTime ProductionDate { get; set; }//生产日期
        [Display(Name = "送检日期")]
        public DateTime InspectionDate { get; set; }//送检日期


        //public int TestItemId { get; set; }//testid，外键
        public ICollection<TestItem> TestProjects { get; set; } = new List<TestItem>();//一个device对应多个测试项目
    }
}
